package com.appbee.songs.client;

import javax.inject.Singleton;

import com.appbee.songs.client.activity.SongsTableActivity;
import com.appbee.songs.client.presenter.SongEditActivity;
import com.appbee.songs.client.text.SongsStrings;
import com.appbee.songs.client.ui.ISongsListView;
import com.appbee.songs.client.ui.ISongsTableView;
import com.appbee.songs.client.ui.SongEditView;
import com.appbee.songs.client.ui.SongsListView;
import com.appbee.songs.client.ui.SongsView;
import com.appbee.songs.shared.SongRequestFactory;
import com.google.gwt.inject.client.AbstractGinModule;

public class SongsGinModul extends AbstractGinModule
{

	@Override
	protected void configure()
	{
		bind(SongsStrings.class).in(Singleton.class);
		bind(SongRequestFactory.class).toProvider(
				SongsRequestFactoryProvider.class);
		bind(SongsTableActivity.class).in(Singleton.class);
		bind(ISongsTableView.class).to(SongsView.class).in(Singleton.class);
		bind(ISongsListView.class).to(SongsListView.class).in(Singleton.class);
		bind(SongEditActivity.View.class).to(SongEditView.class).in(Singleton.class);

	}

}
